m = 0
n = 0
t = 0
for i in range(0, 25):
    print(i)
    m = m + 1
    for j in range(0, 5):
        print(j)
        n = n + 1
        for k in range(0, 10):
            print(k)
            t = t + 1
